﻿<UserControl x:Class="MyFloridaHouse.libSvOpenDistricts.Dialogs.DistrictCustomizationDlgView"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Visibility="{Binding isDlgActive, Converter={StaticResource ConvertBoolToVisibility}}"
               Width="500" Height="160" 
             >

    <UserControl.Resources>
        <!-- 
            NOTE: All dictionaries are picked up in the App.xaml, including styles here allows us to see the effects in the Visual Studio Designer
            NOTE: The converter staticResources will show up here as "Could not be resolved", but they will be picked up from App.xaml at runtime
        -->
        <ResourceDictionary Source="/libSvCommonUtilities;component/Resources/Styles.xaml"/>
    </UserControl.Resources>
    <!---->
    <Border Margin="0"  CornerRadius="20" BorderBrush="#FF549D9D"  BorderThickness="2"  
            Background="{StaticResource MainPageBackgroundBrush}"
            >

        <StackPanel>
            <Grid Margin="15">
                <Grid.RowDefinitions>
                    <RowDefinition Height="*" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>

                <StackPanel Grid.Row="0">
                    <sdk:Label Content="This will apply to all districts:" Style="{StaticResource lblMessageStyle}"/>
                </StackPanel>
                <StackPanel Grid.Row="1" Orientation="Horizontal">
                    <sdk:Label Content="Target Population :" Style="{StaticResource PlanNewLabelStyle}"></sdk:Label>
                    <TextBox Height="23"  Name="txtBx_targetPopulation" Text="{Binding targetPopulation, Mode=TwoWay}" Margin="5" Width="150" Background="Azure"  />
                </StackPanel>

            </Grid>

            <StackPanel  Orientation="Horizontal" HorizontalAlignment="Right" Margin="15">
                <Button x:Name="CancelButton" Content="Cancel" Command="{Binding CmdCancel}" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0"  />
                <Button x:Name="OKButton" Content="Apply" Command="{Binding CmdOK}" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0"  />
            </StackPanel>                    
        </StackPanel>
    </Border>
</UserControl>

